package com.health;

import com.health.auth.HealthAuthApplication;
import com.health.core.support.HealthThreadLocal;
import lombok.var;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.stream.Stream;

@SpringBootTest(classes = HealthAuthApplication.class)
@RunWith(SpringRunner.class)
public class Demo {

    // 使用默认的就好
    @Autowired
    PasswordEncoder passwordEncoder;


    @Test
    public void show(){
        String tidudada = passwordEncoder.encode("tidudada");
        System.out.println(tidudada);
    }

    @Test
    public void show2(){
        var stringStream = Stream.of("12", "2", "4");
        System.out.println(stringStream);

    }






}
